package sugarcookie.media.config {
	public class UIVideoConfiguration {
		private var _hostname:String;
		private var _path:String;
		private var _useAkamaiConnection:Boolean;
		private var _width:int;
		private var _height:int;
		private var _vol:Number;
		private var _lt_buffer:Number;
		private var _ht_buffer:Number;
		
		public function UIVideoConfiguration(videoWidth:int,videoHeight:int,hostname:String=null,path:String="",useAkamaiConnection:Boolean=true,volume:Number=1,lowToleranceBuffer:Number=.5,highToleranceBuffer:Number=10) {
			_width = videoWidth;
			_height = videoHeight;
			_hostname = hostname;
			_path = path || "";
			_useAkamaiConnection = useAkamaiConnection;
			_vol = volume;
			_lt_buffer = lowToleranceBuffer;
			_ht_buffer = highToleranceBuffer;
		}
		
		public function get videoWidth():int { return _width; }
		public function set videoWidth(value:int):void { _width = value; }
		
		public function get videoHeight():int { return _height; }
		public function set videoHeight(value:int):void { _height = value; }
		
		public function get hostname():String { return _hostname; }
		public function set hostname(value:String):void { _hostname = value; }
		
		public function get path():String { return _path; }
		public function set path(value:String):void { _path = value; }
		
		public function get useAkamaiConnection():Boolean { return _useAkamaiConnection; }
		public function set useAkamaiConnection(value:Boolean):void { _useAkamaiConnection = value; }
		
		public function get volume():Number { return _vol; }
		public function set volume(value:Number):void { _vol = value; }
		
		public function get lowToleranceBuffer():int { return _lt_buffer; }
		public function set lowToleranceBuffer(value:int):void { _lt_buffer = value; }
		
		public function get highToleranceBuffer():int { return _ht_buffer; }
		public function set highToleranceBuffer(value:int):void { _ht_buffer = value; }
	}
}